const axios = require("axios");
module.exports = class GroupMessage {
  static async send(text, url) {
    const result = await axios.post(url, {
      msgtype: "text",
      text: { content: text },
    });
    if (result.data.errcode != 0) {
      console.error("发送群消息失败", result.data, text);
    }
  }
};
